/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package manager;

import java.util.List;
import javax.ejb.Remote;
import remoteEntity.Category;
import remoteEntity.Filedescription;
import remoteEntity.User;

/**
 *
 * @author viktor
 */
@Remote
public interface FileManagerRemote {
    
    //TODO: add all of thes commented away methods
    
    int addFile(byte[] fileData, String name, String description, int category, User user);

    void deleteFile(int id);

    List<Category> getAllCategories();
    
    List<Filedescription> findAllFileDescriptions();

    //Filedescription getFile(int filedescriptionId);

    byte[] getFileBlob(int filedescriptionId);
    
}
